package com.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Controller
public class HtmlContoller {

    @GetMapping("/")
    public String index() {
        return "list";
    }

    @GetMapping("/page/{name}")
    public String page(@PathVariable String name) {
        return name;
    }

}
